<template>
	<view class="wap">
		<navbar :parameter="parameter"></navbar>
		<view class="box">
			<view>陪诊专员和应答师请务必要关注下方微信公众号，再点击按钮去绑定微信。</view>
			<image show-menu-by-longpress="true"  class="img" src='@/static/images/wxcode.png'></image>
			
			<view class="btn-box">
				<view class="btn" @click="submit">绑定微信</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			parameter: {
				navbar: '1',
				return: '1',
				title: '绑定微信',
				color: false
			},
			id:'',
			imageUrl: this.imageUrl,
		};
	},
	onLoad(options) {
		// console.log(options.id)
		this.id = options.id
	},
	onShow() {},
	/**
	 * 用户点击右上角分享
	 */
	onShareAppMessage: function () {},
	onShareTimeline(res) {
		//分享到朋友圈
	},
	methods: {
		submit(){
			let url = this.imageUrl +'/api/login/wxopenid/uid/'+this.id
			// console.log(this.imageUrl)
			// console.log(url)
			// return
			uni.setStorageSync('viewurl',url);
			uni.navigateTo({
				url:'/pages/user/web'
			})
		}
	}
};
</script>

<style lang="scss" scoped>
.wap {
	padding: 20rpx;
	text-align: center;
}
.img{
	width: 380rpx;
	height: 380rpx;
	margin: 30rpx auto;
}
.btn-box {
	padding-top: 60rpx;
	padding-bottom: 30rpx;
}

.btn-box .btn {
	width: 100%;
	height: 80rpx;
	border-radius: 10rpx;
	line-height: 80rpx;
	text-align: center;
	background-color: #1f83ff;
	color: #fff;
	font-size: 32rpx;
}
</style>
